package com.baidu.mapper;

import com.baidu.pojo.TbSpecification;
import com.baidu.pojo.TbTypeTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Entity com.baidu.pojo.TbSpecification
 */
@Mapper
@Component
public interface TbSpecificationMapper extends BaseMapper<TbSpecification> {
    Page<TbSpecification> findTbSpecificationList(Page<TbSpecification> page, String specName);

    @Select("select * from tb_type_template where specIds=#{id}")
    TbTypeTemplate findTbTypeTemplateById(@Param("id") Long id);

//    List<TbSpecification> findTbSpecificationList( TbSpecification tbSpecification,Page<TbSpecification> page);


}




